/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package appClientHandler;

import dao.DaoJpa;
import dao.Idao;
import entities.Account;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ejb.EJB;
import javax.ejb.Remote;
import javax.ejb.Stateless;

/**
 *
 * eCOM - Adopte un Presta - Mars-Avril 2013
 * @author Kheira, Jef, William, Tuan-Long
 */
@Stateless
@Remote(HandlerRemote.class)
public class Handler implements HandlerRemote {
    @EJB
    private Idao dao;

    @Override
    public List<Account> getAllAccounts()
    {
        return dao.getAllAccounts();
    }
    
    @Override
    public void test_print() {
        System.out.println("Heh, it works !!");
    }
}
